//
//  IDocHyperLinkButton.m
//  IfengNews
//
//  Created by Ryan on 13-11-4.
//
//

#import "IDocHyperLinkButton.h"

@implementation IDocHyperLinkButton

- (id)init
{
    self = [super init];
    if (self) {
         }
    return self;
}

- (void)initAction{
    [self addTarget:self action:@selector(didClick) forControlEvents:UIControlEventTouchUpInside];
    //self.alpha=0.0f;
  

}

- (void)didClick{
    if(!self.link)return;
  
//        DispatchCenter *dispatchCenter = [[DispatchCenter alloc] init];
//        dispatchCenter.dataURL = [self.link sgrGetStringForKey:@"url"];
//        dispatchCenter.animationType = Dispatch_AnimationType_push;
//        dispatchCenter.dispatchtype = DispatchType_bytype;
//        dispatchCenter.pathName=@"HyperLink";
//        dispatchCenter.toType = [self.link sgrGetStringForKey:@"type"];;
//        [dispatchCenter dispatch];

    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
